package com.atguigu.controller;

import com.atguigu.domain.User;
import org.hibernate.validator.constraints.EAN;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * UserController
 *
 * @Author: 马伟奇
 * @CreateTime: 2021-03-03
 * @Description:
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/findAll")
    public List<User> findAll(){
        List<User> lists = new ArrayList<>();
        lists.add(new User("张三","深圳宝安",20));
        lists.add(new User("李四","深圳宝安",20));
        lists.add(new User("王五","深圳宝安",20));
        return  lists;
    }
}